<template>
	<n-spin :show="countStore.count > 0">
		<n-dialog-provider>
			<n-message-provider>
				<nuxt-page />
			</n-message-provider>
		</n-dialog-provider>
	</n-spin>
</template>
<script setup>
import { useCountStore, useSessionStore } from '@/stores'
import { v4 } from 'uuid'
const countStore = useCountStore()
const sessionStore = useSessionStore()
if (import.meta.client) {
	if (!sessionStore.sessionId) {
		sessionStore.setSessionId(v4().replaceAll('-', ''))
	}
}
</script>